function drawChart(response,textStatus) {
        if (response.isError()) {
                alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage());
                return;
        }
        data = response.getDataTable ()
        var chart = new google.visualization.AnnotatedTimeLine(document.getElementById('chart_div'));
        chart.draw(data, {displayAnnotations: true, scaleType: "maximized"});
}
function drawMiniChart(response,textStatus) {
        if (response.isError()) {
                alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage());
                return;
        }
        data = response.getDataTable ()
	chart_options = {displayAnnotations: false, displayRangeSelector: false, scaleType:"maximized",
			 displayZoomButtons: true, legendPosition:'newRow'};
        var chart = new google.visualization.AnnotatedTimeLine(document.getElementById('minichart'));
        chart.draw(data, chart_options);
}
